<?php 
/* SVN FILE: $Id$ */
/* Lang Test cases generated on: 2009-12-14 01:09:16 : 1260749356*/
App::import('Model', 'Lang');

class LangTestCase extends CakeTestCase {
	var $Lang = null;
	var $fixtures = array('app.lang');

	function startTest() {
		$this->Lang =& ClassRegistry::init('Lang');
	}

	function testLangInstance() {
		$this->assertTrue(is_a($this->Lang, 'Lang'));
	}

	function testLangFind() {
		$this->Lang->recursive = -1;
		$results = $this->Lang->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Lang' => array(
			'id'  => 1,
			'symbol'  => '',
			'name'  => 'Lorem ipsum dolor sit amet',
			'display'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>